//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using CommunityServer.Components;
using CommunityServer.Controls;
using System.Web;

namespace CommunityServer.ControlPanel.Controls
{
	/// <summary>
	/// Summary description for GridItemValidator.
	/// </summary>
	public class GridItemValidator : IMenuItem
	{
		public GridItemValidator()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public bool IsValid(HttpContext context)
		{
			return CSContext.Current.User.ControlPanelManageView == ControlPanelManageView.Grid;
		}
	}
}
